package nc.appcan.bill.util;

import nc.bs.framework.common.InvocationInfoProxy;
import nc.ui.pub.ClientEnvironment;
import nc.vo.pub.lang.UFDate;

public class EnvUtil {
	
	public static String getPeriod(boolean client){
		if(client){
			return ""+ClientEnvironment.getInstance().getDate().getYear();
		}else{
			String date = InvocationInfoProxy.getInstance().getDate();
			return ""+new UFDate(Long.parseLong(date)).getYear();
		}
	}

}
